home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13610 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.7 KB  |  40 lines

  1. Newsgroups: comp.lang.c++
  2. Path: netcom.com!craiga
  3. From: craiga@netcom.com (Craig Arnush)
  4. Subject: Re: Bloated BC5.0 DOS Executable
  5. Message-ID: <craigaDovCnt.1I1@netcom.com>
  6. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  7. References: <315727A7.7365@mnsinc.com>
  8. Date: Tue, 26 Mar 1996 09:50:17 GMT
  9. Sender: craiga@netcom14.netcom.com
  10.  
  11. Craig McCarter <mccarter@mnsinc.com> writes:
  12. >I just compiled a 16 Bit MS-DOS application using BC5.0 and ended up with a
  13. >48,532 byte EXE file. The next most recent compiler that I have installed is
  14. >BC3.1 and it produces a 19,403 byte EXE file from the same C source code.
  15. >The comple and link options are same (as far as I can tell). Can anyone suggest
  16. >why BC5.0 produces such a large executable?
  17.  
  18. A number of things can cause the executable to bloat like that.  First 
  19. and foremost is any debugging information.  Try running the TDSTRIP (or 
  20. TDSTRP32) program on the executable and see if you can shrink it 
  21. immediately.
  22.  
  23. Next is the existence of a bunch of exception handling code.  Even if 
  24. your code doesn't explicitly make use of it, there might be some stuff 
  25. being included in some of the various libraries you're linking, etc.  
  26. Take a look at the online help about exception handling and how to turn 
  27. it off during the compile and the link process (two different things to do).
  28.  
  29. And I think that there's a third obvious-to-try thing that for some odd 
  30. reason is escaping through my ears at the moment.  Sorry.
  31.  
  32. Me
  33. -- 
  34. /----------------------------------------------------\
  35. | Craig Arnush      | "Zog!"                         |
  36. | craiga@netcom.com |     - The Old One at Sigma 957 |
  37. \----------------------------------------------------/
  38.